<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Ocr\V20181119\Models;
use TencentCloud\Common\AbstractModel;

/**
 * RecognizeMexicoVTID response structure.
 *
 * @method string getName() Obtain Name
 * @method void setName(string $Name) Set Name
 * @method string getSex() Obtain Sex
 * @method void setSex(string $Sex) Set Sex
 * @method string getAddress() Obtain Address
 * @method void setAddress(string $Address) Set Address
 * @method string getVotePIN() Obtain Vote PIN Code
 * @method void setVotePIN(string $VotePIN) Set Vote PIN Code
 * @method string getCURP() Obtain Unique Population Registry Code
 * @method void setCURP(string $CURP) Set Unique Population Registry Code
 * @method string getBirth() Obtain Birthday
 * @method void setBirth(string $Birth) Set Birthday
 * @method string getSECCION() Obtain Section Number
 * @method void setSECCION(string $SECCION) Set Section Number
 * @method string getIssueDate() Obtain IssueDate
 * @method void setIssueDate(string $IssueDate) Set IssueDate
 * @method string getValidDate() Obtain ValidDate
 * @method void setValidDate(string $ValidDate) Set ValidDate
 * @method string getState() Obtain State
 * @method void setState(string $State) Set State
 * @method string getCity() Obtain City
 * @method void setCity(string $City) Set City
 * @method string getLocality() Obtain Locality
 * @method void setLocality(string $Locality) Set Locality
 * @method string getEMISION() Obtain Edition
 * @method void setEMISION(string $EMISION) Set Edition
 * @method string getPortraitImage() Obtain Portrait image base64
 * @method void setPortraitImage(string $PortraitImage) Set Portrait image base64
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class RecognizeMexicoVTIDResponse extends AbstractModel
{
    /**
     * @var string Name
     */
    public $Name;

    /**
     * @var string Sex
     */
    public $Sex;

    /**
     * @var string Address
     */
    public $Address;

    /**
     * @var string Vote PIN Code
     */
    public $VotePIN;

    /**
     * @var string Unique Population Registry Code
     */
    public $CURP;

    /**
     * @var string Birthday
     */
    public $Birth;

    /**
     * @var string Section Number
     */
    public $SECCION;

    /**
     * @var string IssueDate
     */
    public $IssueDate;

    /**
     * @var string ValidDate
     */
    public $ValidDate;

    /**
     * @var string State
     */
    public $State;

    /**
     * @var string City
     */
    public $City;

    /**
     * @var string Locality
     */
    public $Locality;

    /**
     * @var string Edition
     */
    public $EMISION;

    /**
     * @var string Portrait image base64
     */
    public $PortraitImage;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param string $Name Name
     * @param string $Sex Sex
     * @param string $Address Address
     * @param string $VotePIN Vote PIN Code
     * @param string $CURP Unique Population Registry Code
     * @param string $Birth Birthday
     * @param string $SECCION Section Number
     * @param string $IssueDate IssueDate
     * @param string $ValidDate ValidDate
     * @param string $State State
     * @param string $City City
     * @param string $Locality Locality
     * @param string $EMISION Edition
     * @param string $PortraitImage Portrait image base64
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("Name",$param) and $param["Name"] !== null) {
            $this->Name = $param["Name"];
        }

        if (array_key_exists("Sex",$param) and $param["Sex"] !== null) {
            $this->Sex = $param["Sex"];
        }

        if (array_key_exists("Address",$param) and $param["Address"] !== null) {
            $this->Address = $param["Address"];
        }

        if (array_key_exists("VotePIN",$param) and $param["VotePIN"] !== null) {
            $this->VotePIN = $param["VotePIN"];
        }

        if (array_key_exists("CURP",$param) and $param["CURP"] !== null) {
            $this->CURP = $param["CURP"];
        }

        if (array_key_exists("Birth",$param) and $param["Birth"] !== null) {
            $this->Birth = $param["Birth"];
        }

        if (array_key_exists("SECCION",$param) and $param["SECCION"] !== null) {
            $this->SECCION = $param["SECCION"];
        }

        if (array_key_exists("IssueDate",$param) and $param["IssueDate"] !== null) {
            $this->IssueDate = $param["IssueDate"];
        }

        if (array_key_exists("ValidDate",$param) and $param["ValidDate"] !== null) {
            $this->ValidDate = $param["ValidDate"];
        }

        if (array_key_exists("State",$param) and $param["State"] !== null) {
            $this->State = $param["State"];
        }

        if (array_key_exists("City",$param) and $param["City"] !== null) {
            $this->City = $param["City"];
        }

        if (array_key_exists("Locality",$param) and $param["Locality"] !== null) {
            $this->Locality = $param["Locality"];
        }

        if (array_key_exists("EMISION",$param) and $param["EMISION"] !== null) {
            $this->EMISION = $param["EMISION"];
        }

        if (array_key_exists("PortraitImage",$param) and $param["PortraitImage"] !== null) {
            $this->PortraitImage = $param["PortraitImage"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
